import { createSSRApp } from "vue";
import App from "./App.vue";
import setupPlugins from "@/plugins";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";
import "uno.css";

import { setupStore } from "@/store";

export function createApp() {
  const app = createSSRApp(App);
  const pinia = createPinia();
  setupStore(app);
  app.use(setupPlugins);
  pinia.use(piniaPluginPersistedstate);
  return {
    app,
  };
}
